/*
 * 
 */
/**
 * @author HUNG
 *
 */
package definite.Guide.Book.JSplitPane;

/*public JSplitPane(int newOrientation, boolean newContinuousLayout,
Component newLeftComponent, Component newRightComponent)

JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true,
topComponent, bottomComponent);

 The continuousLayout property setting determines how the split pane reacts when the user drags the divider. When 
the setting is false(the default), only the divider is redrawn when dragged. When the setting is 
true, the JSplitPaneresizes and redraws the components on each side of the divider as the 
user drags the divider.


 --changing components 
 
 JComponent leftButton = new JButton("Left");
JComponent rightButton = new JButton("Right");
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
splitPane.setLeftComponent(leftButton);
splitPane.setRightComponent(rightButton);
splitPane.setTopComponent(topButton);
splitPane.setBottomComponent(bottomButton);

Initially, the divider is shown below or to the right of the preferred size of the top or left 
component. At any time, you can reset the divider position to that position by calling the 

resetToPreferredSizes()method of JSplitPane.

--


*/